package net.jjjshop.common.entity.lbt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户转账记录表 Entity 实体类
 */
@Data
@TableName("lb_transfer_record")
@ApiModel(value="LbTransferRecordEntity对象", description="用户转账记录表")
public class LbTransferRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
			 * 
			 */
			@ApiModelProperty(value = "记录ID")
			@TableId(value = "id", type = IdType.AUTO)
			private Integer id;
			/**
			 * 用户ID
			 */
			@ApiModelProperty(value = "记录ID")
			private Integer uid;
			/**
			 * 时间
			 */
			@ApiModelProperty(value = "时间")
			private Date createTime;
			/**
			 * 接收账户
			 */
			@ApiModelProperty(value = "接收账户")
			@NotNull(message = "接收账户不能为空")
			private String receiveAccount;

			/**
			 * 类型：0权益卡，1，佣金
			 */
			@ApiModelProperty(value = "类型：0权益卡，1，佣金")
			private Integer type;

			/**
			 * 0支出，1收入
			 */
			@ApiModelProperty(value = "0支出，1收入")
			private Integer pm;

			/**
			 * 备注
			 */
			@ApiModelProperty(value = "备注")
			private String remarks;

			/**
			 * 数量
			 */
			@ApiModelProperty(value = "数量")
			@DecimalMin(value = "10.0",message = "最低转10个")
			private BigDecimal num;
			@ApiModelProperty(value = "转账账号")
			@TableField(exist = false)
			private String account;
	@ApiModelProperty(value = "转账手续费")
	private BigDecimal rate;
}
